import request from "@/utils/request";

export const loginRequest = (username,password) => {
    return request({
        url: '/login',
        method: 'get',
        params:{
            "user":username,
            "password":password
        }
    })
}

export const downloadFile = (filename) => {
    return request({
        url: '/download',
        method: 'get',
        responseType: 'blob',
        params:{
            "filename":filename
        },
        responseType: 'blob'
    })
}


export default { loginRequest }